// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SYS_FILE_POWER
// * CreateDate    : 2014-06-05 18:30:43
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:43
// * LastChanger   : 2014-06-05 18:30:43
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class SysFilePowerEntity : EntityBase
    {
        public SysFilePowerTable TableSchema
        {
            get
            {
                return SysFilePowerTable.Current;
            }
		}
		
		public SysFilePowerEntity()
        {

        }
		
		public SysFilePowerEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.FileId = Convert.ToString(CommonFunctions.ToObject(dr["FILE_ID"]));
			this.DutyNo = Convert.ToString(CommonFunctions.ToObject(dr["DUTY_NO"]));
			this.DutyName = Convert.ToString(CommonFunctions.ToObject(dr["DUTY_NAME"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["USER_NO"]));
			this.UserName = Convert.ToString(CommonFunctions.ToObject(dr["USER_NAME"]));
        }
		
		public SysFilePowerEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.FileId = Convert.ToString(CommonFunctions.ToObject(dr["FILE_ID"]));
			this.DutyNo = Convert.ToString(CommonFunctions.ToObject(dr["DUTY_NO"]));
			this.DutyName = Convert.ToString(CommonFunctions.ToObject(dr["DUTY_NAME"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["USER_NO"]));
			this.UserName = Convert.ToString(CommonFunctions.ToObject(dr["USER_NAME"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SysFilePowerTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(SysFilePowerTable.C_ID)); }
            set { SetData(SysFilePowerTable.C_ID, value); }
        }
		
        [DataMember]
        public string FileId
        {
            get { return Convert.ToString(GetData(SysFilePowerTable.C_FILE_ID)); }
            set { SetData(SysFilePowerTable.C_FILE_ID, value); }
        }
		
        [DataMember]
        public string DutyNo
        {
            get { return Convert.ToString(GetData(SysFilePowerTable.C_DUTY_NO)); }
            set { SetData(SysFilePowerTable.C_DUTY_NO, value); }
        }
		
        [DataMember]
        public string DutyName
        {
            get { return Convert.ToString(GetData(SysFilePowerTable.C_DUTY_NAME)); }
            set { SetData(SysFilePowerTable.C_DUTY_NAME, value); }
        }
		
        [DataMember]
        public string UserNo
        {
            get { return Convert.ToString(GetData(SysFilePowerTable.C_USER_NO)); }
            set { SetData(SysFilePowerTable.C_USER_NO, value); }
        }
		
        [DataMember]
        public string UserName
        {
            get { return Convert.ToString(GetData(SysFilePowerTable.C_USER_NAME)); }
            set { SetData(SysFilePowerTable.C_USER_NAME, value); }
        }
		
		#endregion
	}
	
	
}	

